package com.wicket.okrpbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.biz.service.TaskGenService;

import com.wicket.okrpbff.common.ro.OkrResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.*;
import com.wicket.okrapp.integration.FwAppTaskGenClient;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.dto.BatchQueryInductionRecordListComRespDto;
import com.wicket.okrframework.integration.dto.BatchQueryInductionRecordListComReqDto;
import com.wicket.okrframework.integration.FwBaseBaseClient;
import com.wicket.okrframework.integration.dto.BatchQuerySpaceComRespDto;
import com.wicket.okrframework.integration.dto.BatchQuerySpaceComReqDto;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrpbff.common.exception.Assert;
import com.wicket.okrapp.integration.dto.QueryTimerTaskPlanDetailRespDto;
import com.wicket.okrapp.integration.dto.QueryTimerTaskPlanDetailReqDto;
import com.wicket.okrframework.integration.dto.QueryInductionRecordInfoDetailComRespDto;
import com.wicket.okrframework.integration.dto.QueryInductionRecordInfoDetailComReqDto;
import com.wicket.okrframework.integration.dto.QuerySpaceDetailComRespDto;
import com.wicket.okrframework.integration.dto.QuerySpaceDetailComReqDto;
import com.wicket.okrapp.integration.dto.QueryTimerTaskPlanListRespDto;
import com.wicket.okrapp.integration.dto.QueryTimerTaskPlanListReqDto;
import java.util.stream.Collectors;
import com.wicket.okrframework.integration.dto.BatchQueryInductionRecordComRespDto;
import com.wicket.okrframework.integration.dto.BatchQueryInductionRecordComReqDto;
/**
 * @author ： 
 * @date ： 
 *
 *
 * @version 1.0
 */
@Api(value = "TaskGen", tags = {"TaskGen"})
@RestController
// @RequestMapping("/poms/taskGen/")
public class TaskGenController {
    @Autowired
    TaskGenService taskGenService;
/**
   * B3-2查询定时任务调度列表(管理)(平台)
   * gen by moon at 11/22/2022, 8:49:57 PM
   */
    @PostMapping("/oms/platform/mgt/taskGen/queryTimerTaskPlanList")
    @ApiOperation(value = "B3-2查询定时任务调度列表(管理)(平台)", response = OkrResult.class)
    public OkrResult<BffQueryTimerTaskPlanListRespDto> queryTimerTaskPlanList(@RequestBody(required=false) @Validated BffQueryTimerTaskPlanListReqDto reqDTO){
        return OkrResult.success(taskGenService.queryTimerTaskPlanList(reqDTO));
    }
/**
   * B3-2查询定时任务调度详情(管理)(平台)
   * gen by moon at 11/18/2022, 7:34:54 PM
   */
    @PostMapping("/oms/platform/mgt/taskGen/queryTimerTaskPlanDetail")
    @ApiOperation(value = "B3-2查询定时任务调度详情(管理)(平台)", response = OkrResult.class)
    public OkrResult<BffQueryTimerTaskPlanDetailRespDto> queryTimerTaskPlanDetail(@RequestBody(required=false) @Validated BffQueryTimerTaskPlanDetailReqDto reqDTO){
        return OkrResult.success(taskGenService.queryTimerTaskPlanDetail(reqDTO));
    }
    
}

